<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>数据管理系统</title>
<script type="text/javascript">
        document.documentElement.style.fontSize = document.documentElement.clientWidth /768*100 + 'px';
</script>

</head>

<body>
<!-- 
	<iframe id="myIframe" style="height: 760px;width:99%;" th:src="'http://' + ${manageIp} + ':3000/d/kBR-xMink/dai-nei-jian-kong-shu-ju?orgId=1&kiosk=full'"></iframe>
 -->
 	<div id="myIframe"></div>	
	<script type="text/javascript">
	/**
	    window.onload=function(){
	    	//输出当前窗口的宽
			var windowWidth = document.documentElement.clientWidth || document.body.clientWidth;
			var windowHeight = document.documentElement.clientHeight || document.body.clientHeight;
			document.getElementById("myIframe").style.height=windowHeight + "px";
	    };
	**/    
	    //doesn't block the load event
	    function createIframe() {
	    	//输出当前窗口的宽
			var windowWidth = document.documentElement.clientWidth || document.body.clientWidth;
			var windowHeight = document.documentElement.clientHeight || document.body.clientHeight;
			
	        var i = document.createElement("iframe");
	        i.src = 'http://[[${manageIp}]]:3000/d/kBR-xMink/dai-nei-jian-kong-shu-ju?orgId=1&kiosk=full';
	        //i.src = "http://localhost/data/fieldConfig";
	        i.scrolling = "auto";
	        i.frameborder = "0";
	        i.width = "99%";
	        i.height = windowHeight + "px";
	        document.getElementById("myIframe").appendChild(i);
	     };
	     // Check for browser support of event handling capability
	     if (window.addEventListener) window.addEventListener("load", createIframe, false);
	     else if (window.attachEvent) window.attachEvent("onload", createIframe);
	     else window.onload = createIframe;
	</script>
	
</body>
</html>
